package app.v1.yd.mapper;

import app.v1.yd.domain.pojo.YdWarehouse;
import com.gitee.feizns.quickstart.mybatis.plus.QuickstartBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 仓库映射
 * @author feizns
 * @since 2023/09/11
 */
@Mapper
public interface YdWarehouseMapper extends QuickstartBaseMapper<YdWarehouse> {

    /**
     * 根据仓库编号查询仓库
     * @param no {@link String} 仓库编号
     * @return {@link YdWarehouse}
     */
    default YdWarehouse selectByNo(@Param("no") String no) {
        return new YdWarehouse().setNo(no).selectOne();
    }

}
